import getTime from "./getTime";

function notice(delay: number, note?:string) {
    if (!note) { note = '' }
    const now = new Date();
    const delayedTime = new Date(now.getTime() + delay).toLocaleString("zh-CN", { timeZone: "Asia/Shanghai" });
    console.log(
        `${getTime()}`,
        `将在 ${delayedTime} 发送${note}打卡通知`
    )
}

export default notice;
